package obj;

import java.util.ArrayList;
import java.util.List;

import sim.Vehicle;

public class Path {
	String name;
	double maxSpeed;
	int vehiclePerMin;
	List<Edge> edgesList = new ArrayList<Edge>();
	List<Vehicle> vehiclesEntered = new ArrayList<Vehicle>();
	List<Vehicle> vehiclesExited = new ArrayList<Vehicle>();

	public List<Vehicle> getVehiclesEntered() {
		return vehiclesEntered;
	}

	public void setVehiclesEntered(List<Vehicle> vehiclesEntered) {
		this.vehiclesEntered = vehiclesEntered;
	}
	
	public void setVehiclesEntered(Vehicle vehicle) {
		this.vehiclesEntered.add(vehicle);
	}

	public List<Vehicle> getVehiclesExited() {
		return vehiclesExited;
	}

	public void setVehiclesExited(List<Vehicle> vehiclesExited) {
		this.vehiclesExited = vehiclesExited;
	}
	
	public void setVehiclesExited(Vehicle vehiclesExited) {
		this.vehiclesExited.add(vehiclesExited);
	}

	public Path(String n, double s, int v, List<Edge> l) {
		name = n;
		maxSpeed = s;
		vehiclePerMin = v;
		edgesList = l;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getMaxSpeed() {
		return maxSpeed;
	}

	public void setMaxSpeed(double maxSpeed) {
		this.maxSpeed = maxSpeed;
	}

	public int getVehiclePerMin() {
		return vehiclePerMin;
	}

	public void setVehiclePerMin(int vehiclePerMin) {
		this.vehiclePerMin = vehiclePerMin;
	}

	public List<Edge> getEdgesList() {
		return edgesList;
	}

	public void setEdgesList(List<Edge> edgesList) {
		this.edgesList = edgesList;
	}
}
